<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		svg{border: 1px solid #333;}
	</style>
	<script type="text/javascript" src="./js/d3.v3.min.js"></script>
	<script type="text/javascript">
		window.onload=function(){
			//数据绑定
			var arr=['北京','上海','广州','深圳']

			 var body=d3.select("body")

			 body.selectAll("p").data(arr).enter()
			 	.append("p")
			 	.text((item,index)=>{
			 		return item;
			 	})



		}
	</script>
</head>
<body>

</body>
</html>